package com.swak.paxos.protocol;

import java.io.Serializable;

import com.swak.paxos.Value;
import com.swak.paxos.enums.ProposalType;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * PaxosMesage.
 * 
 * @author DELL
 */
@Getter
@Setter
@Accessors(chain = true)
@Data
public class PaxosMessage implements Serializable {
	private static final long serialVersionUID = 1L;
	private String nodeID;
	private int groupId;
	private ProposalType type;
	private long instanceID;
	private long proposalID;
	private String proposalNodeID;
	private long preAcceptID;
	private String preAcceptNodeID;
	private long rejectByPromiseID;
	private long nowInstanceID;
	private long timestamp;
	private Value value;
}
